package com.mall.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.omg.CORBA.NO_MEMORY;

/**
 * ��Ʒ��������
 *
 * @author yjv
 * @email 111111@163.com
 * @date 2024-08-04 00:42:44
 */
@Data
@TableName("pms_category")
public class CategoryEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ����id
     */
    @TableId
    private Long catId;
    /**
     * ��������
     */
    private String name;
    /**
     * ������id
     */
    private Long parentCid;
    /**
     * �㼶
     */
    private Integer catLevel;
    /**
     * �Ƿ���ʾ[0-����ʾ��1��ʾ]
     */
    @TableLogic(value = "1",delval = "0")
    private Integer showStatus;
    /**
     * ����
     */
    private Integer sort;
    /**
     * ͼ���ַ
     */
    private String icon;
    /**
     * ������λ
     */
    private String productUnit;
    /**
     * ��Ʒ����
     */
    private Integer productCount;
    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<CategoryEntity> childrens;

}
